package cn.jiyun.entity;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @Author weiyuanhang
 * @data: 2023/8/11 001115:29
 * @Package cn.jiyun.entity
 * @email 3185757326@qq.com
 */
@Data
public class Menber {
    @TableId(value = "mid",type = IdType.AUTO)
    private Integer mid;
    private String mname;
    private String img;
    private String idcode;
    private Integer tid;
    @TableField(value = "createtime")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "Asia/Shanghai")
    private Date createTime;
    private Integer status;
    private String sex;
    private String username;
    private String password;
}
